package com.yznote.cloudesk.file.server;

import com.yznote.cloudesk.common.pojo.File;
import com.yznote.cloudesk.common.pojo.Garbage;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : xiaozhoutongxue
 * @date : 2022/10/20 23:21
 */
@Service
public interface GarbageServer {
    List<File> selectGarbageByTime(Long userId);

    String insertGarbage(Long fileId);

    String insertMoreGarbages(Long fileId);

    void deleteGarbage(Long fileId) throws Exception;
    void deleteMoreGarbages(Long fileId) throws Exception;
    void deleteAllGarbages() throws Exception;
}
